package com.hdcircles.autoform.util;

import com.hdcircles.autoform.BuildConfig;
import com.orhanobut.logger.Logger;

/**
 * Created by hdcircles on 2016/9/21.
 */

public class LogUtil {

    public static boolean isDebug= BuildConfig.DEBUG;

    private static final String TAG="com.hdcircles.autoform";

    public static void e(String tag,Object o){
        if (isDebug){
            Logger.e(tag,o);
        }
    }

    public static void e(Object o){
        LogUtil.e(TAG,o);
    }

    public static  void w(String tag,Object o){
        if (isDebug){
            Logger.w(tag,o);
        }
    }

    public static void d(String msg){
        if (isDebug){
            Logger.d(msg);
        }
    }

    public static void i(String msg){
        if (isDebug){
            Logger.i(msg);
        }
    }
}
